
import { defHttpNoToken } from '/@/utils/http/axios';
import { DictModel } from '/@/api/sys/model/dictModel';
import {DictType} from "/#/api";

enum Api {
    getDictList = '/sys/dict/list',
}

/**
 * @description: getUserInfo
 */
export function getDictByType(type:DictType) {
    return defHttpNoToken.get<Array<DictModel>>({ url: Api.getDictList,params:{type} }, { errorMessageMode: 'none' });
}
